<div style="text-align: center">
    <div class="layui-inline">
        <nav aria-label="Page navigation">
            <ul class="pagination">
                <li>
                    {% if paginate.has_prev %}
                        <a href="{{ url_for ('fwblue.index', page=paginate.prev_num) }}">&laquo;</a>
                    {% endif %}
                </li>

                <li>
                    {# 分页大于1 页，显示分页  #}
                    {% if paginate.pages > 1 %}
                        {% for pagi in  page_range %}
                            {% if paginate.page == pagi %}
                                <li class="active"><a href="{{ url_for ('fwblue.index',page=pagi ) }}">{{ pagi }} <span
                                        class="sr-only">(current)</span></a></li>
                            {% else %}
                                <li><a href="{{ url_for ('fwblue.index',page=pagi ) }}">{{ pagi }}</a></li>
                            {% endif %}
                        {% endfor %}
                    {% endif %}
                </li>

                <li>
                    {% if paginate.has_next %}
                        <a href="{{ url_for ('fwblue.index', page=paginate.next_num) }}">&raquo;</a>
                    {% endif %}
                </li>
            </ul>
        </nav>
    </div>
</div>

